package com.check.ui;

import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.text.Font;
import javafx.stage.Modality;
import javafx.stage.Stage;

/**
 * @description:
 * @Author: zyt
 */
public class StageModal extends Stage {
    public StageModal(String title) {
        Group group = new Group();
        this.setScene(new Scene(group,600,400));
        this.setTitle(title);
        Label label1 = new Label(title);
        label1.setId("111");
        label1.setLayoutX(50);
        label1.setLayoutY(50);
        label1.setFont(Font.font(22));
        group.getChildren().setAll(label1);
        this.initModality(Modality.APPLICATION_MODAL);
        this.setOnCloseRequest((e)->{return;});
        this.show();
    }

}
